<script setup>
import QkMenu from "@/components/qkMenu.vue";
import QkHeader from "@/components/qkHeader.vue";
import QkFooter from "@/components/qkFooter.vue";
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <qk-menu/>
      </el-aside>

      <el-container>
        <el-header>
          <qk-header/>
        </el-header>

        <el-main>
          <el-card style="border-radius: 0.4rem;">
            <template #header>
              <div class="div01">{{ $route.meta.title }}</div>
            </template>
            <router-view/>
          </el-card>
        </el-main>

        <el-footer>
          <qk-footer/>
        </el-footer>
      </el-container>
    </el-container>
  </div>
  <el-backtop :bottom="100">
    <div
        style="
        height: 100%;
        width: 100%;
        background-color: var(--el-bg-color-overlay);
        box-shadow: var(--el-box-shadow-lighter);
        text-align: center;
        line-height: 40px;
        color: #1989fa;
      ">↑↑↑
    </div>
  </el-backtop>
</template>

<style scoped>
.div01 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: #409eff;
}
</style>
